<!-- START PANEL 1 -->
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
    <td style="width:90%;vertical-align:top;font-size:9pt;" class="color">
        {if $iCnt}
        {str_replace text="`viewing_ifrom_ito_out_of_icnt_polls`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
        {/if}
        <br />
        {include file="$sRootPath/_blocks/pager_nav_button.html"}
    </td>
</tr>
</table>
<!-- END PANEL 1 -->

<!-- START POLLS -->
<table style="width:100%;" cellpadding="8" cellspacing="8">
<tr>
{foreach from=$aItems name=aitems item=aItem key=iKey}
<td style="width:50%;vertical-align:top;" class="border2">
<form method="post" action="{url link='public.poll.vote' id=$aItem.id}">
<table style="width:100%;"><tr><td style="font-size:8pt;text-align:left;" class="color">
<div style="padding-left:10px;"><br/><div style="font-size:8pt;font-weight:bold;" class="color">
{if $bAdmin}<div><a class="link_action" onclick="return confirm('{language text="do_you_want_delete_this_item"}');" href="{url link='public.poll' delete=$aItem.id}">[ {language text="delete"} ]</a></div><br />{/if}
 <div style="font-size:7pt;font-weight:normal;"></div>
<a href="{url link='public.user' name=$aItem.user}">
    {Account::Avatar sUser=$aItem.user iSize=60 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
</a>
<br/>
{$aItem.poll|escape}</div>
{if $aItem.answer}
    <div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    {language text="you_have_already_voted_on_this_poll"} <br /><br /><b>{language text="your_answer"}:</b><br /> {$aItem.answer|escape}<br /></div>
{else}
<div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    {if $aItem.o1 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="1" style="border:0px;vertical-align:middle;" />
        {$aItem.o1|escape}</label>
        </div>
    {/if}
    {if $aItem.o2 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="2" style="border:0px;vertical-align:middle;" />
        {$aItem.o2|escape}</label>
        </div>
    {/if}
    {if $aItem.o3 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="3" style="border:0px;vertical-align:middle;" />
        {$aItem.o3|escape}</label>
        </div>
    {/if}
    {if $aItem.o4 != ''}
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="4" style="border:0px;vertical-align:middle;" />
        {$aItem.o4|escape}</label>
        </div>
    {/if}
</div>
            {if !$aItem.answer}
                        <div style="padding:5px;text-align:center;">
                            <input type="submit" value=" {language text="vote"} " />
                        </div>
            {/if}
{/if}
{if $aItem.can_view}<br /><div style="padding-left:10px;font-size:8pt;"><a class="link_action" href="{url link='public.poll.view' id=$aItem.id}">[ {language text="view_the_results"} ]</a></div>{/if}
</div>
</td>
</tr>
</table>
 </form>
</td>
{if $iKey % 2 == 1}
</tr><tr>
{/if}
{foreachelse}
<td>
<div class="message_info">
{language text="there_are_no_polls_yet"}
</div>
</td>
{/foreach}
</tr>
</table>
<!-- START POLLS -->

<br />

<!-- START PANEL 2 -->
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
    <td style="width:90%;vertical-align:top;font-size:9pt;" class="color">
        {include file="$sRootPath/_blocks/pager_nav_button.html"}
    </td>
</tr>
</table>
<!-- END PANEL 2 -->